package Lab03.Question4;
class Phone{
    String Brand;
    String Model;
    public Phone(){

    }
    public Phone(String brand, String Model){
        this.Brand=brand;
        this.Model=Model;
    }

    public String toString(){
        return this.Brand + " " + this.Model;
    }
}
class Music{
    String Name;
    String Type;
    public Music(){
    }
    public Music(String Name, String Type){
        this.Name=Name;
        this.Type=Type;
    }

    public String toString(){
        return this.Name + " (" + this.Type+")";
    }
}

public class Test {
    public static void main(String[] args) {
        Phone my=new Phone("Realme","GTNeo");
        Music music=new Music("Flower","Pop");

        System.out.print(my);
        System.out.print(" is playing ");
        System.out.println(music);
    }
}
